package com.kun.portal.webframe.po;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2018/6/28.
 * 航班配载信息表
 */
@Entity
@Table(
        name = "industry_load"
)
@DynamicUpdate
public class IndustryLoadPo implements Serializable {
    @Id
    @GeneratedValue(
            generator = "industry_load_id"
    )

    @GenericGenerator(
            name = "industry_load_id",
            strategy = "uuid"
    )
    @Column(
            name = "industry_load_id",
            length = 32,
            nullable = false
    )
    private String industryLoadId;//id

    @Column(
            name = "precheck_num",
            length = 100
    )
    private Integer precheckNum;//预检人数
    @Column(
            name = "adult_num",
            length = 100
    )
    private Integer adultNum;//成人数
    @Column(
            name = "children_num",
            length = 100
    )
    private Integer childrenNum;//儿童数
    @Column(
            name = "baby_num",
            length = 100
    )
    private Integer babyNum;//婴儿数
    @Column(
            name = "unattended_num",
            length = 100
    )
    private Integer unattendedNum;//无陪数
    @Column(
            name = "wheelchair_num",
            length = 100
    )
    private Integer wheelchairNum;//轮椅数
    @Column(
            name = "other",
            length = 100
    )
    private Integer other;//其它
    @Column(
            name = "total_people",
            length = 100
    )
    private Integer totalPeople;//总人数
    @Column(
            name = "cargo_weight",
            length = 100
    )
    private Double cargoWeight;//货物重量
    @Column(
            name = "mail_weight",
            length = 100
    )
    private Double mailWeight;//邮件重量

    @Column(
            name = "baggage_weight",
            length = 100
    )
    private Double baggageWeight;//行李重量
    @Column(
            name = "courier_number",
            length = 100
    )

    private Integer courierNumber;//快递数量
    @Column(
            name = "large_cargo_num",
            length = 100
    )
    private Integer largeCargoNum;//超大物数量
    @Column(
            name = "total_baggage_num",
            length = 100
    )
    private Integer totalBaggageNum;//行李数量

    @Column(
            name = "animal_num",
            length = 100
    )
    private Integer animalNum;//动物数量
    @Column(
            name = "loading_date",
            length = 100
    )
    @Temporal(TemporalType.DATE)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="Asia/Shanghai")
    private Date loadingDate;//配载日期

    public String getIndustryLoadId() {
        return industryLoadId;
    }

    public void setIndustryLoadId(String industryLoadId) {
        this.industryLoadId = industryLoadId;
    }

    public Integer getPrecheckNum() {
        return precheckNum;
    }

    public void setPrecheckNum(Integer precheckNum) {
        this.precheckNum = precheckNum;
    }

    public Integer getAdultNum() {
        return adultNum;
    }

    public void setAdultNum(Integer adultNum) {
        this.adultNum = adultNum;
    }

    public Integer getChildrenNum() {
        return childrenNum;
    }

    public void setChildrenNum(Integer childrenNum) {
        this.childrenNum = childrenNum;
    }

    public Integer getBabyNum() {
        return babyNum;
    }

    public void setBabyNum(Integer babyNum) {
        this.babyNum = babyNum;
    }

    public Integer getUnattendedNum() {
        return unattendedNum;
    }

    public void setUnattendedNum(Integer unattendedNum) {
        this.unattendedNum = unattendedNum;
    }

    public Integer getWheelchairNum() {
        return wheelchairNum;
    }

    public void setWheelchairNum(Integer wheelchairNum) {
        this.wheelchairNum = wheelchairNum;
    }

    public Integer getOther() {
        return other;
    }

    public void setOther(Integer other) {
        this.other = other;
    }

    public Integer getTotalPeople() {
        return totalPeople;
    }

    public void setTotalPeople(Integer totalPeople) {
        this.totalPeople = totalPeople;
    }

    public Double getCargoWeight() {
        return cargoWeight;
    }

    public void setCargoWeight(Double cargoWeight) {
        this.cargoWeight = cargoWeight;
    }

    public Double getMailWeight() {
        return mailWeight;
    }

    public void setMailWeight(Double mailWeight) {
        this.mailWeight = mailWeight;
    }

    public Double getBaggageWeight() {
        return baggageWeight;
    }

    public void setBaggageWeight(Double baggageWeight) {
        this.baggageWeight = baggageWeight;
    }

    public Integer getCourierNumber() {
        return courierNumber;
    }

    public void setCourierNumber(Integer courierNumber) {
        this.courierNumber = courierNumber;
    }

    public Integer getLargeCargoNum() {
        return largeCargoNum;
    }

    public void setLargeCargoNum(Integer largeCargoNum) {
        this.largeCargoNum = largeCargoNum;
    }

    public Integer getTotalBaggageNum() {
        return totalBaggageNum;
    }

    public void setTotalBaggageNum(Integer totalBaggageNum) {
        this.totalBaggageNum = totalBaggageNum;
    }

    public Integer getAnimalNum() {
        return animalNum;
    }

    public void setAnimalNum(Integer animalNum) {
        this.animalNum = animalNum;
    }

    public Date getLoadingDate() {
        return loadingDate;
    }

    public void setLoadingDate(Date loadingDate) {
        this.loadingDate = loadingDate;
    }
}